/*
 * Created on 07.12.2003
 */
package observations;

/**
 <code>DomainObject</code> Every object should inherit from this one.
 
 @author Sascha Hemminger
 @version 1.0 2004-08-10
 */
public abstract class DomainObject implements DomainInterface {

  protected String name = "no name";

  /**
   * Default constructor.
   */
  public DomainObject() {
  }

  /**
   * Constructs a new object with a name.
   
   @param name
   *            name of the object
   */
  public DomainObject(String name) {
    this.name = name;
  }

  /**
   * Gives the name of the object.
   
   @return name of a particular DomainObject
   @see observations.DomainInterface#getName()
   */
  public String getName() {
    return name;
  }
}